package org.apache.beam.examples.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class H2DataBaseInit {

    public static final String driver = "org.h2.Driver";
    public static final String url = "jdbc:h2:./target/DATA/demo";
    public static final String user = "sa";
    public static final String password = "";

    private static final String finalUrl = url+";";

    public static void initDB() throws ClassNotFoundException, SQLException {
        Class.forName(driver);
        Connection conn = DriverManager.getConnection(url,user,password);
        conn.close();
    }


}
